A. Sub class create object of super class
B. Sub class extends Base class
C. Sub class extends super class
D. All of the above
Advertisement
Related Mcqs:
- Interfaces helps in which type of inheritance ?
- A. Multiple inheritance B. Multilevel inheritance C. Hierarchical inheritance D. None of above...
- Which type of inheritance is not supported by java_____________?
- A. Single B. Mulilevel C. Hirarchical D. Multiple...
- Main method parameter has which type of data type___________________?
- A. int B. char C. string D. double...
- Runnable is_______________?
- A. Interface B. Class C. Variable D. Method...
- Which of the following command is used to compile the Java program ?
- A. java B. javac C. javap D. none of these...
- In Java, the word true is ___________________?
- A. A Boolean literal B. A Java keyword C. Same as value 0 D. Same as value 1...
- Which statements are most accurate regarding the following classes? class A{private int i; protected int j; } class B extends A{ private int k; protected int m; } ?
- A. An object of B contains data fields j, k, m B. An object of B contains data fields k, m C. An object of B contains data fields j, m D. An object of B contains data fields i, j, k, m...
- Automatic type conversion in Java takes place when________________?
- A. Two type are compatible and size of destination type is equal of source type. B. Two type are compatible and size of destination type is larger than source type. C. Two type are compatible and size of destination type is shorter than source type. D. All of the above...
- Java is known as ___________ stage language?
- A. 1 B. 2 C. 3 D. 4...
- Package of drawstring() method is _________________?
- A. java.awt B. javax.swing C. java.applet D. java.io...
Advertisement